/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package analex;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Pedrom
 */
public class symboltable {
    private Map<String, String> hash = new HashMap<String, String> () ;

    public symboltable() {
        hash.put("variables", "ReservedWord");
        hash.put("methods", "ReservedWord");
        hash.put("constants", "ReservedWord");
        hash.put("class", "ReservedWord");
        hash.put("return", "ReservedWord");
        hash.put("empty", "ReservedWord");
        hash.put("main", "ReservedWord");
        hash.put("if", "ReservedWord");
        hash.put("then", "ReservedWord");
        hash.put("else", "ReservedWord");
        hash.put("while", "ReservedWord");
        hash.put("for", "ReservedWord");
        hash.put("read", "ReservedWord");
        hash.put("write", "ReservedWord");
        hash.put("integer", "ReservedWord");
        hash.put("float", "ReservedWord");
        hash.put("boolean", "ReservedWord");
        hash.put("string", "ReservedWord");
        hash.put("true", "ReservedWord");
        hash.put("false", "ReservedWord");
        hash.put("extends", "ReservedWord");
    }
    
    public boolean containsKey(String key){
        return hash.containsKey(key);
    }
    
}
